package com.itheima.stock.vo.resp;

import com.itheima.stock.pojo.domain.PermissionsTreeDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 用户登录后数据返回拓展版
 */

@ApiModel(description = "用户登录后数据返回拓展版")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginRespExpandVo {
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", position = 1)
    private Long id;

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称", position = 2)
    private String username;

    /**
     * 电话号码
     */
    @ApiModelProperty(value = "电话号码", position = 3)
    private String phone;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", position = 4)
    private String realName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", position = 5)
    private Integer sex;

    /**
     * 装填
     */
    @ApiModelProperty(value = "装填", position = 6)
    private Integer status;

    /**
     * 邮件
     */
    @ApiModelProperty(value = "邮件", position = 7)
    private String email;

    /**
     * 权限数（不包含按钮权限）
     */
    @ApiModelProperty(value = "权限数（不包含按钮权限）", position = 8)
    private List<PermissionsTreeDomain> menus;

    /**
     * 按钮权限集合
     */
    @ApiModelProperty(value = "按钮权限集合", position = 9)
    private List<String> permissions;

    /**
     * token
     */
    @ApiModelProperty(value = "token", position = 10)
    private String accessToken;
}
